package com.mzj.saas.mservice.community.entity;

import com.mzj.saas.commons.IdEntity;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/**
 * 小区与楼宇关系表
 */
@Entity
@Table(name = "saas_community_build")
public class CommunityBuild extends IdEntity {

    @Basic
    @Column(name = "community_id", nullable = true)
    private String communityId; //小区id

    @Basic
    @Column(name = "name", nullable = true)
    private String name; //楼宇名称

    @Basic
    @Column(name = "type", nullable = true)
    private Integer type; //类型(1洋房 2别墅 3公寓)

    @Basic
    @Column(name = "house_number", nullable = true)
    private Integer houseNumber; //层数

    @Basic
    @Column(name = "operation_id", nullable = true)
    private String operationId; //操作人

    @Basic
    @Column(name = "create_time", nullable = true)
    private Date createTime; //操作时间

    public String getCommunityId() {
        return communityId;
    }

    public void setCommunityId(String communityId) {
        this.communityId = communityId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getHouseNumber() {
        return houseNumber;
    }

    public void setHouseNumber(Integer houseNumber) {
        this.houseNumber = houseNumber;
    }

    public String getOperationId() {
        return operationId;
    }

    public void setOperationId(String operationId) {
        this.operationId = operationId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}
